$('.rule-entity-validate').closest('form').on('ajax:success', function() {
    let current_row = $('table tbody tr#rule_entity_decision_table_<%= params[:id] %>');
    current_row.find("td.col.col-status").text("<%= RuleEntity::Status::VALIDATED %>");

    current_row.find('form input.rule-entity-validate[type="submit"]').remove();

    alert("Validate rule <%= @result ? 'success' : 'failed' %>.");
});
